package com.zhiquan.cai;

import com.zhiquan.cai.call.ManTuHao;
import com.zhiquan.cai.call.WomanTuHao;
import com.zhiquan.cai.proxy.QiaoCompany;
import com.zhiquan.cai.target.Boy;
import com.zhiquan.cai.target.Girl;
import com.zhiquan.cai.target.Gpanda;
import com.zhiquan.cai.target.Vegeta;

public class PlayGame {
    public static void main(String[] args) {

//        System.out.println("土豪男约会女艺人");
//
//        //土豪男
//        ManTuHao manTuHao = new ManTuHao(18.0f);
//        System.out.println("土豪男准备好了");
//
//        //女艺人
//        Girl girl = new Gpanda();
//        System.out.println("女艺人Gpanda准备好了");
//
//        //代理
//        Qiao qiao = new Qiao(girl);
//        System.out.println("代理准备好了");
//        manTuHao.dateing(qiao);

        System.out.println("土豪男约会女艺人");

        //土豪男
        ManTuHao manTuHao = new ManTuHao(18.0f);
        System.out.println("土豪男准备好了");

        //女艺人
        Girl girl = new Gpanda();
        System.out.println("女艺人Gpanda准备好了");

        //代理
        Girl gProxy = (Girl) QiaoCompany.proxy(girl);

        //土豪男调用
        manTuHao.setLength(17.9f);
        manTuHao.dateing(gProxy);

        //土豪女调用
        WomanTuHao womanTuHao = new WomanTuHao("e");
        Boy boy = new Vegeta();
        Boy bProxy = (Boy)QiaoCompany.proxy(boy);
        womanTuHao.dateing(bProxy);

    }
}
